package com.wushi.lenovo.asia5b.app_model.good;

import com.mvp.base.model.BaseModel;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/2/18.
 */
public class OrderPayPriceModel extends BaseModel {

    /**
     * charges : [{"code":"subtotal","title":"小计","default_title":"Sub Total","value":"15.50","rate":0,"rate_type":0,"max_fee":0,"min_fee":0,"paid_price_different_list":[],"different_amount":0,"tooltips":"选定产品的总价格","default_tooltips":"Total amount of the selected product\\'s price","formula":"选定产品的总价格","default_formula":"Total amount of the selected product\\'s price","text":"RM 15.50","sort_order":"1"},{"code":"international","title":"国际运费","default_title":"International Shipping Fee","value":255,"rate":"10","rate_type":"percentage","different_amount":0,"max_fee":0,"min_fee":0,"tooltips":"将所有物品从asia5b海外仓库运送到您所在国家的国际运费","default_tooltips":"The international shipping fee to ship all items from asia5b's overseas warehouse to your country","formula":"Economy Air, Calculated Weight 25.50 (Highest Weight), Based Rate = 10 (Weight 1 * 10), Continued Amount = 245 (Balance Weight 24.5 * Rate 10), Total Amount = 255","default_formula":"Economy Air, Calculated Weight 25.50 (Highest Weight), Based Rate = 10 (Weight 1 * 10), Continued Amount = 245 (Balance Weight 24.5 * Rate 10), Total Amount  = 255","text":"RM 255.00","sort_order":"3"},{"code":"processingcosting","title":"手续费","default_title":"Processing Fee","value":"5.41","rate":2,"different_amount":0,"max_fee":0,"min_fee":0,"rate_type":"percentage","paid_price_different_list":[],"tooltips":"此订单的处理费用","default_tooltips":"The processing fee charge on this order","formula":"Sub Total + International Delivery Fee (270.5) * Rate (2%) = 5.41","default_formula":"Sub Total + International Delivery Fee (270.5) * Rate (2%) = 5.41","text":"RM 5.41","sort_order":"4"},{"code":"local","title":"马来西亚本地运费","default_title":"Malaysia Local Delivery Fee","value":"0","rate":"0","rate_type":"fix","different_amount":0,"max_fee":"15","min_fee":0,"tooltips":"将所有物品从asia5b海外仓库中运送到您所在国家的本地运费","default_tooltips":"The local shipping fee to ship all items from asia5b's overseas warehouse to your country","formula":"Door Step, Calculated Weight 26.00, Fix Amount (0)","default_formula":"Door Step, Calculated Weight (26.00), Fix Amount (0)","text":"RM 0.00","sort_order":"5"},{"code":"insurancecosting","title":"包裹处理保证","default_title":"Parcel Handling Guarantee fees","value":8.12,"rate_type":"percentage","rate":"3","max_fee":0,"different_amount":0,"paid_price_different_list":[],"min_fee":0,"tooltips":"此订单的包裹处理保证费用","default_tooltips":"The Parcel Handling Guarantee charge on this order","formula":"Sub Total (15.5) + International Delivery Fee (255) = Total (270.5) * 3% = 8.12","default_formula":"Sub Total (15.5) + International (255) = Total (270.5) * 3% = 8.12","text":"RM 8.12","sort_order":"9"},{"code":"total","title":"总额","default_title":"Total","value":"284.03","tooltips":"","default_tooltips":"","rate":0,"rate_type":0,"max_fee":0,"paid_price_different_list":[],"different_amount":0,"min_fee":0,"formula":"","default_formula":"","text":"RM 284.03","sort_order":"99"}]
     * language_id : 2
     * total_weight : 25.50
     * total_local_weight : 26.00
     * weights : {"highest":"25.50","display":"25.50","display_local":"26.00","average":"13.00","actual":"25.50","m3":0,"m3_local":"0.00"}
     * extra_data : {"international_delivery_method":"economyair","insurance":"1","delivery_address":{"building_name":"\"2","calling_code":"60","address":"\"\"23","city":"Ampang","mobile":"105669361","address_id":"1","postcode":"68000","other_postcode":"null","name":"ZZ1!ZZ","state_id":"81","state":"Selangor","country_id":"4","city_id":"369"},"voucher":"null","billing_address":{"building_name":"\"2","calling_code":"60","address":"\"\"23","city":"Ampang","mobile":"105669361","address_id":"1","postcode":"68000","other_postcode":"null","name":"ZZ1!ZZ","state_id":"81","state":"Selangor","country_id":"4","city_id":"369"},"local_delivery_method":"doorstep","payment_method":"topup"}
     * products : {"256":{"id":256,"type":"pending_payment","product_id":285,"category_id":3,"shop_id":"110891200","shop_name":"雅晶LED汽车改装用品","is_sensitive":0,"width":null,"length":null,"height":null,"order_id":101,"quantity":1,"attr_name":"Silver single Price","option":"395066195","name":"Warning Lamp car Modified solar decorative lamp shark gill false side wind mouth net lamp atmosphere LED flash light","price":"RM 15.50","price_value":15.5,"domestic_fee_seller":0,"domestic_fee":0,"domestic_fee_format":"RM 0.00","group_domestic_fee_seller":0,"group_domestic_fee":0,"group_domestic_fee_format":"RM 0.00","dimension_weight":null,"size_dimension":null,"weight":3,"selected_weight":"25.30","highest_weight":25.3,"actual_weight":25.3,"m3_weight":0,"average_weight":12.65,"weight_method":"highest","weight_multiply":"1.1","kgorm3":"kg","insurance_amount":0,"total":"RM 15.50","total_plus_domestic":"RM 15.50","total_value":15.5,"status":5,"image":"//img.alicdn.com/imgextra/i1/2097150007/TB2LgQwjRNkpuFjy0FaXXbRCVXa_!!2097150007.jpg"}}
     * is_sensitive : 0
     * total_different : 0
     * got_pending_purchase : 1
     * currency_code : MYR
     * subtotal : 15.5
     * country_id : 4
     * member_id : 1
     * confirm_order : 0
     * total : 284.03
     * paid_price_different_list : []
     * international_fee : 255
     * international_type : based
     * international_kgorm3 : kg
     * international_weight_method : highest
     * international_rate : Tzo4OiJzdGRDbGFzcyI6Mjp7czoxOiIwIjtPOjg6InN0ZENsYXNzIjo2OntzOjc6ImtnX2Zyb20iO3M6MToiMCI7czo1OiJrZ190byI7czoxOiIxIjtzOjQ6InR5cGUiO3M6MTA6InBlcmNlbnRhZ2UiO3M6ODoia2dfb3JfbTMiO3M6Mjoia2ciO3M6MTM6IndlaWdodF9tZXRob2QiO3M6NjoiYWN0dWFsIjtzOjM6ImZlZSI7czoyOiIxMCI7fXM6MToiMSI7Tzo4OiJzdGRDbGFzcyI6Njp7czo3OiJrZ19mcm9tIjtzOjE6IjEiO3M6NToia2dfdG8iO3M6NDoiOTk5OSI7czo0OiJ0eXBlIjtzOjEwOiJwZXJjZW50YWdlIjtzOjg6ImtnX29yX20zIjtzOjI6ImtnIjtzOjEzOiJ3ZWlnaHRfbWV0aG9kIjtzOjc6ImhpZ2hlc3QiO3M6MzoiZmVlIjtzOjI6IjEwIjt9fQ==
     * processing_different_total : 0
     * local_fee : 0
     * local_rate : YToxOntpOjA7Tzo4OiJzdGRDbGFzcyI6Njp7czo3OiJrZ19mcm9tIjtzOjE6IjAiO3M6NToia2dfdG8iO3M6NDoiOTk5OSI7czo0OiJ0eXBlIjtzOjM6ImZpeCI7czo4OiJrZ19vcl9tMyI7TjtzOjEzOiJ3ZWlnaHRfbWV0aG9kIjtOO3M6MzoiZmVlIjtzOjE6IjAiO319
     * insurance_different_total : 0
     * checkout_log_id : 3141
     * success : 1
     */

    private String language_id;
    private String total_weight;
    private String total_local_weight;
    private String total_weight_before;
    //    private WeightsBean weights;
    private ExtraDataBean extra_data;
    //    private ProductsBean products;
    private String is_sensitive;
    private String total_different;
    private String got_pending_purchase;//未购买数量
    private String currency_code;
    private String subtotal;
    private String country_id;
    private String member_id;
    private String confirm_order;//订单类型
    private String total;
    private String total_text;
    private String international_fee;
    private String international_type;
    private String international_kgorm3;
    private String international_weight_method;
    private String international_rate;
    private String processing_different_total;
    private String local_fee;
    private String local_rate;
    private String insurance_different_total;
    private int checkout_log_id;
    private String success;
    private List<ChargesBean> charges;
    public List<ShopModel> shops;



    public ExtraDataBean getExtra_data() {
        return extra_data;
    }


    public String getTotal_weight_before() {
        return total_weight_before;
    }


    public String getTotal_weight() {
        return total_weight;
    }


    public String getTotal_local_weight() {
        return total_local_weight;
    }


    public String getTotal_different() {
        return total_different;
    }


    public String getCurrency_code() {
        return currency_code;
    }


    public String getSubtotal() {
        return subtotal;
    }


    public String getCountry_id() {
        return country_id;
    }


    public String getMember_id() {
        return member_id;
    }


    public String getTotal() {
        return total;
    }

    public String getTotal_text() {
        return total_text;
    }

    public String getInternational_type() {
        return international_type;
    }

    public String getInternational_kgorm3() {
        return international_kgorm3;
    }

    public String getInternational_weight_method() {
        return international_weight_method;
    }

    public String getInternational_rate() {
        return international_rate;
    }


    public String getLocal_fee() {
        return local_fee;
    }

    public String getLocal_rate() {
        return local_rate;
    }


    public int getCheckout_log_id() {
        return checkout_log_id;
    }


    public List<ChargesBean> getCharges() {
        return charges;
    }


    public static class ExtraDataBean extends BaseModel {
        public String payment_method = "";//fpx
        public String international_delivery_method = "";
        public String add_on_service_name = "";
        public String local_delivery_method = "";
        public DeliveryAddressBean delivery_address = null;
        public DeliveryAddressBean billing_address = null;
    }

    public static class DeliveryAddressBean extends BaseModel {
        public String building_name;
        public String calling_code;
        public String address;
        public String city;
        public String mobile;
        public String address_id;
        public String postcode;
        public String other_postcode;
        public String name;
        public String state_id;
        public String state;
        public String country_id;
        public String city_id;
        /*
           "building_name": "",
   "calling_code": "60",
   "address": "106,Jalan Rimba Emas, Taman Bersatu",
   "city": "Kulim",
   "mobile": "10-2299239",
   "address_id": "1879",
   "postcode": "09000",
   "other_postcode": "null",
   "name": "Lim Kee Kee",
   "state_id": "79",
   "state": "Kedah",
   "country_id": "4",
   "city_id": "95"
         */
    }
}
